import request from '@/utils/request'

// 查询排列5方法4预测列表
export function listFour(query) {
  return request({
    url: '/caipiao/four/list',
    method: 'get',
    params: query
  })
}

// 查询排列5方法4预测详细
export function getFour(id) {
  return request({
    url: '/caipiao/four/' + id,
    method: 'get'
  })
}

// 新增排列5方法4预测
export function addFour(data) {
  return request({
    url: '/caipiao/four',
    method: 'post',
    data: data
  })
}

// 修改排列5方法4预测
export function updateFour(data) {
  return request({
    url: '/caipiao/four',
    method: 'put',
    data: data
  })
}

// 删除排列5方法4预测
export function delFour(id) {
  return request({
    url: '/caipiao/four/' + id,
    method: 'delete'
  })
}
// 修改排列5方法预测
export function generateCode(data) {
  return request({
    url: '/caipiao/four/generateCode',
    method: 'get',
    params: data
  })
}
// 修改排列5方法预测
export function checkCode(data) {
  return request({
    url: '/caipiao/four/checkCode',
    method: 'get',
    params: data
  })
}
